package encore.portal.container.impl;

import java.io.IOException;

import javax.portlet.PortletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import encore.portal.container.ContainerServices;
import encore.portal.container.PortletContainer;
import encore.portal.container.PortletContainerException;
import encore.portal.container.PortletWindow;

public class PortletContainerImpl implements PortletContainer {

	/**
	 * 判断容器是否已经初始化过了
	 */
	private boolean initialized=false;

	public boolean isInitialized() {
		return initialized;
	}

	
    /**
     * 容器销毁操作
     */
	public void destroy() throws PortletContainerException {
		

	}

 
	public void doRender(PortletWindow portletWindow) throws PortletException,
			IOException, PortletContainerException {
		

	}

    /**
     * 容器初始化操作
     */
	public void init() throws PortletContainerException {
		

	}


	@Override
	public void doAction(PortletWindow portletWindow,
			HttpServletRequest request, HttpServletResponse response)
			throws PortletException, IOException, PortletContainerException {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void doAdmin(PortletWindow portletWindow,
			HttpServletRequest request, HttpServletResponse response)
			throws PortletException, IOException, PortletContainerException {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void doEvent(PortletWindow portletWindow,
			HttpServletRequest request, HttpServletResponse response)
			throws PortletException, IOException, PortletContainerException {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void doLoad(PortletWindow portletWindow, HttpServletRequest request,
			HttpServletResponse response) throws PortletException, IOException,
			PortletContainerException {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void doRender(PortletWindow portletWindow,
			HttpServletRequest request, HttpServletResponse response)
			throws PortletException, IOException, PortletContainerException {
		// TODO Auto-generated method stub
		
	}


	@Override
	public void doServeResource(PortletWindow portletWindow,
			HttpServletRequest request, HttpServletResponse response)
			throws PortletException, IOException, PortletContainerException {
		// TODO Auto-generated method stub
		
	}


	@Override
	public ContainerServices getContainerServices() {
		// TODO Auto-generated method stub
		return null;
	}


	@Override
	public String getName() {
		// TODO Auto-generated method stub
		return null;
	}

}
